<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/7/15
  Time: 19:35
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
%>

<style type="text/css">
    .pageList a{
        display:inline-block;
        width:35px;
        height:35px;
        background-color:#C0C0C0;
        color:white;
        text-align:center;
        line-height:35px;
        border-radius:18px;
        text-decoration:none;
    }
</style>

<span style="font-size: 25px;">查询出"<em style="color: red">${param.solrsearch}</em>"结果</span><br>

<ul style="margin-top: 20px" >
    <c:forEach items="${requestScope.articles}" var="article">
        <li>
            <h3><a href="<%=path%>/web/article/details?id=${article.id}">${article.title}</a></h3>
            <span>作者：${article.userinfo.nickname}</span>
            <span>点赞数：${article.praiseCount}</span>
            <span>收藏数：${article.collectCount}</span>
            <p></p>
        </li>
    </c:forEach>
</ul>

<div class="pageList" style="text-align: center;">

    <c:forEach items="${requestScope.pager.navigatepageNums}" var="i">
        <a href="javascript:void(0);" onclick="toSolrSearch(this)" class="class${i}" id="${i}" style="border-radius: 80px">${i}</a>
    </c:forEach>

    <span>共${requestScope.pager.dataCount}条内容</span>
</div>
